package com.he.DesignPatterns.adapter.ClassAdapter;

/**
 * @description: TODO
 * @Author: HCL
 * @Date: 2024/8/26 16:38
 */
public class Client {
    public static void main(String[] args) {
        Computer computer = new Computer();
        String readResult = computer.readSD(new SDCardImpl());
        System.out.println("readResult = " + readResult);

        //定义适配器
        System.out.println("=========================");
        String readSD = computer.readSD(new SDAdapter());
        System.out.println(readSD);
    }
}
